package com.lfk.justweengine.utils.crashHandler;

import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import ohos.app.Context;
import org.junit.Assert;
import org.junit.Test;

public class CrashHandlerDefaultOhosTest {

    @Test
    public void testInit() {
        Context context = AbilityDelegatorRegistry.getAbilityDelegator().getAppContext();
        String path = CrashHandlerDefault.init(context);

        //TODO Ohos系統的路徑是什麽？
        Assert.assertEquals("/storage/emulated/0/Android/data/com.lfk.justweengine/files/CrashLog",path);
    }
}